package com.lishe.lishe.retrofit;

/**
 * Created by DELL on 2017/11/21.
 */

public abstract class DataResponseListener<T> {

    public abstract void onSuccess(T dataResponse);
    public abstract void onFail(String failMessage);
    public abstract void onError(Throwable e);

    public void onNetWorkError(){

    }

    public void onPrepare(){

    }

    /**
     * 接口返回ce
     */
    public void onDataEmpty(){

    }

    /**
     * 上传所需接口
     */
    public void onUploadSuccess(){

    }

    public void onUploadFail(String failMessage){

    }


    public void onProgress(long progress,long total,boolean done){

    }
}
